// /home/lester/HDPU/kinematix/kinematix/physics/kForce.cs created with MonoDevelop
// User: lester at 18:47 13.06.2007
//

using System;
using IrrlichtNETCP;
using Ode.NET;

namespace kinematix
{
	
	
	public class kForce
	{
	
		internal Vector3D force;
		internal float time;
		
		public kForce(float _time, Vector3D _force)
		{
			force = _force;
			time = _time;
		}
		
		public void Apply(phBody body, float dt)
		{
			if (time != 0.0f)
			{
			body.AddForce(force);
			time -= dt;
			}
		}
		
		public Vector3D Force
		{
			get
				{ return force; }
			set
				{ force = value;}
		}
		
		public float Life
		{
			get
				{
					return time;
				}
			set
				{
					time = value;
				}
		}
		
	}
}
